﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace SY_Library
{
    public static class Color
    {
        public static SolidColorBrush BackColor(byte r, byte g, byte b)
        {
            SolidColorBrush scb = new SolidColorBrush();
            scb.Color = System.Windows.Media.Color.FromRgb(r, g, b);
            return scb;
        }
        public static SolidColorBrush BackColor(byte r, byte g, byte b, byte a)
        {
            SolidColorBrush scb = new SolidColorBrush();
            scb.Color = System.Windows.Media.Color.FromArgb(a, r, g, b);
            return scb;
        }
        public static SolidColorBrush BackColor(byte color)
        {
            SolidColorBrush scb = new SolidColorBrush();
            scb.Color = System.Windows.Media.Color.FromRgb(color, color, color);
            return scb;
        }
        public static SolidColorBrush BackColor(byte color, byte a)
        {
            SolidColorBrush scb = new SolidColorBrush();
            scb.Color = System.Windows.Media.Color.FromArgb(a, color, color, color);
            return scb;
        }

    }
}
